package chapter05.E03;

import java.util.Locale;

public class E03 {
    public static void main(String[] args) {
        String str = "abcd";
        System.out.println();
        char[] charsArray = str.toCharArray();
        for (int i = 0; i < charsArray.length;i++){
            if (i != charsArray.length-1){
                System.out.println(charsArray[i]+ ",");
            }else {
                System.out.println(charsArray[i]);
            }
        }
        System.out.println("将int值转换为String类型之后的结果:"+String.valueOf(12));
        System.out.println("将字符串转换成大写字母之后的结果:"+str.toUpperCase());
        System.out.println("将字符串转换成大小写字母之后的结果:"+str.toLowerCase());
    }
}

